package com.yu.boot2.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zy
 * @date 2019-05-27 11:05
 **/
@Component
@ConfigurationProperties(prefix = "aliyun")
public class OssConfigProperties {
    /**
     * 阿里云绑定的域名
     */
    private String domain;

    /**
     * 阿里云路径前缀
     */
    private String aliyunPrefix;

    /**
     * 阿里云EndPoint
     */
    private String endPoint;

    /**
     * 阿里云AccessKeyId
     */
    private String accesskeyid;

    /**
     * 阿里云AccessKeySecret
     */
    private String accesskeysecret;

    /**
     * 阿里云BucketName
     */
    private String bucketName;

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getAliyunPrefix() {
        return aliyunPrefix;
    }

    public void setAliyunPrefix(String aliyunPrefix) {
        this.aliyunPrefix = aliyunPrefix;
    }

    public String getEndPoint() {
        return endPoint;
    }

    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint;
    }

    public String getAccesskeyid() {
        return accesskeyid;
    }

    public void setAccesskeyid(String accesskeyid) {
        this.accesskeyid = accesskeyid;
    }

    public String getAccesskeysecret() {
        return accesskeysecret;
    }

    public void setAccesskeysecret(String accesskeysecret) {
        this.accesskeysecret = accesskeysecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
